package com.free.explayer;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;


public class MusicPlayerService extends Service {

    private boolean started;
    private MusicPlayerBinder mBinder;

    public MusicPlayerService() {
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        if (!started) {
            started = true;
            mBinder = new MusicPlayerBinder(this);
        }
        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public IBinder onBind(Intent intent) {
        return mBinder;
    }
}